package com.edu.d9_reflect;

/**
 * 用于测试反射的实际作用场景
 */
public class Test {

    public static void main(String[] args) throws Exception {
        Student student = new Student("黑马吴彦祖", 45, '男', 185.3, "篮球");
        Teacher teacher = new Teacher("波妞", 999.9);

        //需求：把任意对象的字段名和其对应的值等信息，保存到文件当中去
        ObjectFrame.saveObject(teacher);
        ObjectFrame.saveObject(student);
    }
}
